package cn.itcast.storage.api;


import org.orz.cloud.common.result.ResultDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PutMapping;

@FeignClient(value = "storage",url = "${feign-client-ip.storage:}")
public interface StorageClient {

    @PutMapping("api/storage/{code}/{count}")
    ResultDTO deduct(@PathVariable("code") String code, @PathVariable("count") Integer count);
}
